//package com.bsj.power.job.task.handle.impl;
//
//import com.alibaba.fastjson.JSON;
//import com.bsj.consumerQ.function.HandleRun;
//import com.bsj.power.common.config.cached.RedisCached;
//import com.bsj.power.common.config.redis.RedisConstant;
//import com.bsj.power.common.def.entity.job.Job;
//import com.bsj.power.common.util.DateUtils;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.Date;
//import java.util.List;
//import java.util.Map;
//
//import static com.bsj.power.common.util.DateUtils.yearMonthDay;
//
///**
// * @author yinhao
// * @version 1.0
// * @description 作业工单检测
// * @date 2024/8/7
// */
//@Service
//@Slf4j
//public class DefaultAnomalousJobHandleRun implements HandleRun {
//
//    @Autowired
//    private RedisCached redisCached;
//
//    @Override
//    public void doRun(List<byte[]> list) {
//        if (list == null && list.isEmpty()) {
//            return;
//        }
//        for (byte[] bytes: list) {
//            String dateKey = DateUtils.dateToStr(yearMonthDay, new Date());
//            //获取每天全部的工单数据
//            Map<String, String> dayJobMap = redisCached.hgetAll(RedisConstant.JOB_ORDER_EVERYDAY_KEY + dateKey);
//            dayJobMap.forEach((key, value) -> {
//                //key 工单号
//                Job jobInfo = JSON.parseObject(value, Job.class);
//            });
//        }
//    }
//}
